package cn.fafu.fafu_record.result;

public enum ResultEnum {

    UNKNOWN_ERROR(500,"未知错误"),
    SUCCESS(200,"操作成功"),
    NULL_TOKEN_ERROR(500,"无token，请重新登录"),
    EXPIRE_TOKEN_ERROR(401,"token无效"),
    NULL_FILE_ERROR(500,"上传失败,请选择图片"),
    UPLOAD_FILE_ERROR(500,"上传失败,服务器出错");

    private int code;
    private String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}

